using System;
using System.Diagnostics;
using System.Windows.Forms;
using Nwc.XmlRpc;

namespace EnsoDeveloperExtension.SampleApp.Test
{
    static class Program
    {
        static public void WriteEntry(String msg, EventLogEntryType type)
        {
            if (type != EventLogEntryType.Information) // ignore debug msgs
                Console.WriteLine("{0}: {1}", type, msg);
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Logger.Delegate = WriteEntry;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new SampleForm());
        }
    }
}